package com.exception;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BusinessException extends RuntimeException {
    /*private int code;
    private String msg;
    public BusinessException(int code, String msg){
        this.code = code;
        this.msg = msg;
    }*/

    //code：1开头是用户服务出错 2开头是信息服务出错
    private CodeMsg codeMsg;
    public BusinessException(CodeMsg codeMsg){
        this.codeMsg = codeMsg;
    }
}